<p>First Name: <span class="<?php if ($permissions->editcontact):?>edit_textinput<?php endif;?>" id="<?=$contact->id;?>|contact|firstname"><?=$contact->firstname;?></span></p>
<p>Surname: <span class="<?php if ($permissions->editcontact):?>edit_textinput<?php endif;?>" id="<?=$contact->id;?>|contact|surname"><?=$contact->surname;?></span></p>
<p>Position: <span class="<?php if ($permissions->editcontact):?>edit_textinput<?php endif;?>" id="<?=$contact->id;?>|contact|contact_title"><?=$contact->contact_title;?></span></p>
<p>Email: <span class="<?php if ($permissions->editcontact):?>edit_textinput<?php endif;?>" id="<?=$contact->id;?>|contact|email1"><?=$contact->email1;?></span></p>
<p>Alt Email: <span class="<?php if ($permissions->editcontact):?>edit_textinput<?php endif;?>" id="<?=$contact->id;?>|contact|email2"><?=$contact->email2;?></span></p>
<p>DDI: <span class="<?php if ($permissions->editcontact):?>edit_textinput<?php endif;?>" id="<?=$contact->id;?>|contact|ddi"><?=$contact->ddi;?></span></p>
<p>Mobile: <span class="<?php if ($permissions->editcontact):?>edit_textinput<?php endif;?>" id="<?=$contact->id;?>|contact|mobile"><?=$contact->mobile;?></span></p>

				
<?php if ($permissions->editcontact):?>
	<?php if($contact->usersid):?>
		<p>This user has access to epicentr.
		<a class="buttonisedTight caccess" href="<?=site_url('contact/removeContactAccess/'.$contact->id);?>">Remove Access</a>
	<?php else:?>
		<a class="buttonisedTight caccess" href="<?=site_url('contact/setContactAccess/'.$contact->id);?>">Allow Client Access</a></p>
	<?php endif;?>
<?php endif;?>
<p><?php if ($permissions->editcontact):?><a class="cdelete" href="<?=site_url('contact/delete/'.$contact->id);?>">Delete this Contact</a><?php endif;?></p>